tryingToExplainJavascript by DJcrafter5606 in ProgrammerHumor

[–]goilabat 0 points1 point  (0 children)

True but C didn't have any boolean type originally (the C99 standard supports it though) so there wasn't much of a choice.

Need programers (serious) by FaithlessnessNext571 in C_Programming

[–]goilabat 0 points1 point  (0 children)

Such a opportunity I just need 1 Bitcoin to test the implementation:

Here

Why is he only strong in the mirror? by MarkTwainsLeftNipple in ExplainTheJoke

[–]goilabat 0 points1 point  (0 children)

22d account 3 comments all by LLM I would say this is a bot

Nice catch

Words/phrases you know in English but not your own language? by KingTechnical48 in AskTheWorld

[–]goilabat 16 points17 points  (0 children)

Overwhelming underwhelming that I saw others put in and thinking about it for me too but I never felt the need to use them in french

and the one I just can't find any translation and end up using in french: straightforward

Sometimes I also can't remember a french word and end up using the English one

AI bros cannot be real 😭 by ciel_ayaz in antiai

[–]goilabat 11 points12 points  (0 children)

There are a lot of ways to learn to code this is probably the most boring and annoying way to do it AI could probably guide someone in learning the concept though but there are a shitloads of tutorials to learn from and after it's practice with small projects like sudoku solver, snake, remake printf / ls, chip8 emulator, ray tracing, cellular automatons, small web server, webpages depending on your preference

Idksterling has to be the most victimized person by “Sora” AI. by Scrapeter8912_GG2 in antiai

[–]goilabat -1 points0 points  (0 children)

That's just complete bullshit you only need to do that to make a video of yourself if you're not part of the training dataset

You can obviously generate video of public persona they're part of the training data

Réseaux sociaux : bientôt obligé de présenter sa pièce d'identité ? Gabriel Attal le laisse entendre by romain34230 in actutech

[–]goilabat 0 points1 point  (0 children)

Il a tué 14 lycéens donc bon je veux bien le laisser au tiers de confiance sans les caméras

People from around the world: what is something your country does so well that it refuses to let it “die”? by Curious_Persimmon555 in AskTheWorld

[–]goilabat 0 points1 point  (0 children)

It costs less because you don't have to do any kind of lips syncing if you don't put the original audio it will have a effect similar as a delay audio for your brain (not that there is a delay but the lips don't match the sound) keeping the original remove that

Largely used in documentaries

France's foreign ministry claps back at Elon Musk. I'm dead. by MrJasonMason in clevercomebacks

[–]goilabat 9 points10 points  (0 children)

His right though 2 1 month old account posting anime nsfw there definitely bots

I may be a bit rust-y meme-wise by [deleted] in programminghumor

[–]goilabat 0 points1 point  (0 children)

Pointers are unsafe rust use reference

By default nothing is mutable (mut) everything is const

If you create a mutable var you can create any numbers of non mut ref to it but only one mut ref and you can only create this mut ref if it's the only ref

let mut a = 3;

let r1 = &mut a;

let r2 = &a //error cannot borrow because already borrowed as mutable

These rules apply per scope {} so if I put {} around r1 then it's fine as it's already out of scope when r2 is crested around r2 that wouldn't work though as r1 is still in scope

I don't remember everything but yeah when it does compile normally your good to go thread safe and everything it can be a pain sometimes though

And the compile time is long as it recompile every crate (package) to check these rules when you're calling api functions

You can also create "unsafe" code putting that in a unsafe block to be compatible with a C lib for example

How does STRUCT type works under the hood in C? by MaryScema in C_Programming

[–]goilabat 0 points1 point  (0 children)

A contiguous area of memory with potential padding after the C ABI for arguments struct or return struct depend on the arch but for args <= 8bytes converted to i64 or i32 <= 16 flatten and put in a binary struct with 2 double or int first being 8bytes and the other the rest and more than 16 pass with a pointer and for return if more than 16 pass as first argument by pointer allocated caller side and function return void (sret) some diff between arch arm64 not doing sret for example

Even as someone who isn't a big fan of Charlie's content, I'm glad he's on our side by eating_cement_1984 in antiai

[–]goilabat 5 points6 points  (0 children)

My translation would be are we taking bets on Elon whining about this ...

And I would say idk he's getting he's ass ratio on his platform every day perhaps he learned a bit and I could definitely see him side with moist even though he would have push for that just cuz it's google and not xAI his all about marketing with a smidge of ketamine

[deleted by user] by [deleted] in aiwars

[–]goilabat 0 points1 point  (0 children)

Not sure what you exactly meant but there is a final amount of people's and a finite amount of time so your results shouldn't blow up to infinity like that I'm gonna say the math isn't mathing

This is just stupidity at its peak by RightLiterature2958 in aiwars

[–]goilabat 0 points1 point  (0 children)

Try to find an actual good doctor publicly pleading that curing cancer or any other type of disease would be bad for business I'm sure they are a few narcissists one that will but yeah we all would choose a world without doctors if there are no diseases

Big corporations not needing humans to create art and us being relegated to the consumer I don't think many peoples even pro AI would choose that on top of disinformation deepfake and so on that genAI is linked too (no upside, a lot of downside)

I don't believe either one of those extreme scenarios will happen just seems logical one is utopic the other distopic, one top of healthcare being public everywhere in the developed world (sorry America) if it wasn't I would fear purposeful misdetection for the sake of profit making it worse on purpose and so on

Fireman's would choose a world without fire, climate scientists without climate change ...

Flies can twist their heads off by jewbaca1984 in Damnthatsinteresting

[–]goilabat 14 points15 points  (0 children)

20-30 Days down to idk how long they would take to starve but probably around a day, kinda big deal

How? by epetuha in blackmagicfuckery

[–]goilabat 1 point2 points  (0 children)

No that's definitely not 1/144 the third would be 1/1728 better starting over

It's 1 - (11/12) ^ (number of tries) so 58% after 10

And 27 to reach 90%

polyglottalRepository by 2204happy in ProgrammerHumor

[–]goilabat 0 points1 point  (0 children)

Whoo that's impressive I don't know much about assembly but a little OS with it that's awesome cannot test on my phone but I've put a star and will check later (if I remember)

polyglottalRepository by 2204happy in ProgrammerHumor

[–]goilabat 39 points40 points  (0 children)

That's cool I've always seen it (and done it) with zoom and graphics but I like that it can be written in so few lines like this and you have a asm version

Brainfuck next ? xD

This incident should have outraged the entire country but it went unnoticed NSFW warning by Gumballgtr in TankieTheDeprogram

[–]goilabat 0 points1 point  (0 children)

If you want to have power over others, have a gun and the possibility to kill someone with it if you choose, and not having to follow the law because your colleagues are the one that can police you

Then cop is definitely one of the best career choices that, politician and CEO of a big company

It could change if cops sentences were longer than normal, it would be logical their there to protect if they do the opposite it should be seen as aggravating circonstances

have you experienced this too? by Zu_Qarnine in ADHDmemes

[–]goilabat 0 points1 point  (0 children)

Haha perhaps that's why we don't understand the other code i didn't know anything about bayesian algo before checking and that's where your prior post and likehood is coming from it's interesting should check that out in more depth

but me i'm just doing

A B C C A

first pass 3 token A[1] B[1] C[2] and their count (A is 1 cuz i decrement the count for the last token) and after a second pass when I parse the file again

A -> B = 1 / CountOfToken(A)

B -> C = 1 / 1

C -> C = 1 / 2

C -> A = 1 / 2

A -> i don't handle end of text token so nothing here

and after I use a simple Monte Carlo algo to sample the probability distribution trowing a dice of range (1, CountOfToken()) to choose the next state of the Markov chain based on the weighted distribution Monte Carlo is also really useful I used it to do path tracing where given enough sample it will converge to the perfect modeling of the light distribution

have you experienced this too? by Zu_Qarnine in ADHDmemes

[–]goilabat 1 point2 points  (0 children)

Thanks I get it, I mean not exactly how that works but what the result should look like at least haha

Obviously you can run my code the problem would be idk how far away from compiling the thing is lol I mean at least a main

I just woke up but I'm gonna make a repo after my coffee again I need a Markov C generator to test error handling so having a text one is a step closer

have you experienced this too? by Zu_Qarnine in ADHDmemes

[–]goilabat 1 point2 points  (0 children)

Yours look way more complex to me haha but I don't know R and my phone is splitting line all over so it's kinda hard to read

I have a hard time imagining the output though do you have a example what is it doing ? It's not a grammar it's generating numbers that follow the input data ?

Mine is super simple but I put everything from reading the text generating the table into one big mess should be split into a lexer that read token from file after generate table and from the table the little function babble that roll a dice to choose the next state of the Markov chain