Jump to content

Sauron

Member
  • Posts

    28,063
  • Joined

  • Last visited

Reputation Activity

  1. Agree
    Sauron reacted to wanderingfool2 in Another C quirk 🥴   
    Again, I go back to what I had said before you can't just compare these kinds of things against each other and come to conclusions that they must not be equal.  There are a bunch of things that can overpower essentially your profiler in this case.
     
    Lets look at the inner loops assembly
    .L6: addl $1, -8(%rbp) .L5: movl -8(%rbp), %eax cltq movq -24(%rbp), %rdx addq %rdx, %rax movzbl (%rax), %eax testb %al, %al jne .L6 addl $1, -4(%rbp) vs
    .L10: addl $1, -16(%rbp) .L9: movl -16(%rbp), %eax cltq movq -24(%rbp), %rdx addq %rdx, %rax movzbl (%rax), %eax testb %al, %al jne .L10 addl $1, -12(%rbp) Notice how the assembly is the same pretty much?  At that stage you are talking about just things like how prior code is having effect on current code.
  2. Agree
    Sauron reacted to Kilrah in Another C quirk 🥴   
    Well you know what's waiting to keep you occupied
  3. Agree
    Sauron got a reaction from Needfuldoer in Why PDFs exist   
    Sure, you're offloading the work on the printer itself which would include essentially a computer. Typical on large office printers, less so on inexpensive home ones.
  4. Agree
    Sauron reacted to starsmine in Why PDFs exist   
    PDF is the only way for documents to be what you see is what you get when you print. 
    Type setting before PDF was one of the largest Pain in the asses in the computer world
    https://www.youtube.com/results?search_query=computephile+pdf


    Even RTF will look different in every software and with how you print it. 
  5. Like
    Sauron got a reaction from porina in Sam Altman seeking 5-7 TRILLION in backing for Open AI CPU Creation   
    Yes it is. Well, textures, models, audio etc.
    Not always the case, and dlss upscales the whole output image, not individual textures and models. It's possible that sometimes assets are needlessly high resolution or not well compressed and end up being mostly wasted space, I think there was controversy a while back because a COD game did not bother compressing the audio and ended up with 50gb of FLAC files... but that's not a given. And again it has nothing to do with code optimization.
    Pretty irrelevant for size.
    Prebaked lighting would occupy more space on disk, not less. It would make the game run faster but definitely not less "bloated".
    I agree with the sentiment but it kind of depends on what "AI" is even understood to mean. Just a few years back you would use "AI" to refer to simple game NPC behavior.
  6. Agree
    Sauron reacted to CarlBar in Sam Altman seeking 5-7 TRILLION in backing for Open AI CPU Creation   
    Most of the stuff you see called AI atm isn't AI at all. It's an Expert System. A program designed to do a specific task and highly flexible within that, but incapable of stepping outside it.  And some things being called that don't even qualify as Expert Systems. They're a step down from that.
  7. Agree
    Sauron got a reaction from Lunar River in Dear Linus: Let's talk about Apple Vision Pro Price   
    I don't even really care whether the price could theoretically be justified in terms of hardware costs, because it just seems to be a bad product with barely any software support and few use cases.
     
    Maybe future iterations will be good, possibly even worth the exorbitant price, but right now I'd rather light my money on fire for warmth.
  8. Funny
    Sauron reacted to Needfuldoer in Dear Linus: Let's talk about Apple Vision Pro Price   
    What, you don't want to have conference calls with the ghosts of your friends?
     

     
    Just think of all the bandwidth that can be saved by only transmitting animation data instead of an entire video stream! It's The FutureTM!
  9. Agree
    Sauron reacted to Eigenvektor in for is way faster than goto in C?   
    It does, yes 🙂 I just thought it might make sense to confirm.
     
    On the one hand, it is interesting to see what the code compiles into. On the other hand, it makes zero sense to try and draw any definitive conclusion—for is way faster than goto—about performance from a single example.
     
    As soon as you add actual content into the loop, the performance cost of a single conditional jump might turn into meaningless noise. Or the compiler output might look completely different flipping the result on its head. Of course, for any real world program you'd also enable compiler optimization, which might eliminate the performance difference altogether.
  10. Informative
    Sauron reacted to Eigenvektor in for is way faster than goto in C?   
    Comparing or optimizing performance at that level effectively makes zero sense. Especially if you're not specifying the compiler, compiler version and compiler flags you used.
     
    For any real world code that does something useful inside the loop, there's most likely going to be zero performance difference if you enable compiler optimizations. In any case that is not a performance difference in C, but rather a performance difference in the machine code each variant compiles to.
     
    I've used "gcc -S" (version 13.2.1 20230801) to get the compiled machine code, without any optimization. I'm only copying the actual loop here, since I figure the rest is irrelevant to the discussion.
     
    The for-loop turns into this:
    .L3: addl $1, %ebx .L2: cmpl $-1, %ebx jne .L3 -> Increment number, compare numbers, jump back to L3 if not equal.
     
    The GOTO turns into this instead:
    .L2: cmpl $-1, %ebx je .L3 addl $1, %ebx jmp .L2 .L3: -> Compare numbers, jump to L3 if equal, else increment number, jump back to L2.
     
    In other words, one additional instruction that needs to be evaluated per iteration for goto.
  11. Agree
    Sauron reacted to Kilrah in for is way faster than goto in C?   
    You really need to start looking at the assembly output of your compiler and learn to understand it if you want to go into such detail.
  12. Agree
    Sauron got a reaction from Eigenvektor in for is way faster than goto in C?   
    We went over this in your other thread - you don't know what this compiles to and, further, this is going to be scheduled by the operating system, meaning it will not always complete in the same time.
    I'm pretty sure the compiler will just delete your for loop if it doesn't do anything, as is the case here.
     
    The explicit goto instruction will probably not be deleted, because the variable could be used elsewhere in the code and therefore it must be incremented; it's possible the compiler will just substitute the useless goto with a simple addition, but I'm not certain.
  13. Funny
    Sauron reacted to leadeater in Raptor Lake Refresh 2.0 Coming?   
    In tech news today:

     
    Intel Ryzen 15th Gen Super Ti Refresh coming between Q1 and Q4
  14. Funny
    Sauron reacted to tkitch in Raptor Lake Refresh 2.0 Coming?   
    Summary
    Intel seems to be planning a SECOND raptor lake refresh, to live along side Arrow Lake later this year. 
     
    Quotes
     
    My thoughts
    Okay Intel, why?
     
    Yes that's 4 "generations" on one socket, but 3 of them are literally the same silicon ffs. 
     
    Your naming is already confusing enough, there's no way this will make it easier 
     
    Sources
     https://www.pcgamer.com/intel-reportedly-prepping-refresh-of-raptor-lake-refresh-no-really/
  15. Agree
    Sauron got a reaction from Bensemus in Student arrested after sending private joke over snapchat before boarding a plane, message was viewed by security as he was connected to public Wi-Fi   
    End to end encryption is designed precisely to make this impossible.
    That's also possible... the article only says it was "assumed" the message was read through the wifi network:
    Also worth noting that the network being open or not is pretty much irrelevant if airport security has control of it.
     
    Also yeah spain doesn't have a leg to stand on to get reimbursed for the jets as far as I'm concerned, it's not illegal to joke and there is no law (at least afaik) that makes it illegal on airport grounds either. It's one thing if he shouted "BOMB!" for everyone to hear, but he had no way of knowing anyone but his friends would read this.
  16. Informative
    Sauron got a reaction from Bensemus in Student arrested after sending private joke over snapchat before boarding a plane, message was viewed by security as he was connected to public Wi-Fi   
    Text messages on snapchat are not encrypted:
    https://www.telegraph.co.uk/technology/2019/01/09/snapchat-adds-end-to-end-encryption-protect-users-messages/
     
  17. Agree
    Sauron got a reaction from RockSolid1106 in Fortnite is officially returning to iOS, but not for everyone. New Epic Games Store for iOS as well   
    Quoting from Apple:
    These very much look like API level restrictions, not just a pinky promise the developer makes when signing the app store's terms of service. These can still be enforced on sideloads by the operating system.
     
    Also don't be tricked into believing that Apple can somehow prevent facebook from knowing and using your email address if you use it to create your account... all this means is that iOS won't make that information available to the app.
    Maybe they should fix their shitty API then, rather than use it as an excuse to maintain a monopoly and block open source developers.
    If they don't know they will just use the app store. It's already there. Ideally Apple would bury the sideload enabling option three menus deep like android and leave it at that; if you don't know you'll just get a safe default. Heck, make it an obscure ritual like old school console cheats... I don't care. As long as the option is there for people who want it and the only barrier is knowledge, it's fine.
  18. Agree
    Sauron got a reaction from RockSolid1106 in Fortnite is officially returning to iOS, but not for everyone. New Epic Games Store for iOS as well   
    There have always been ways to circumvent app store restrictions with little effort. Also just because the app is sideloaded doesn't mean it suddenly gets privileged access to the operating system; things that are blocked by the API, like tracking location without consent, will still not be possible. This is the case on Android as well.
     
    Speaking of which, on Android sideloading has always been possible and yet there are almost no mainstream apps requiring their own store or a sideload - because in most cases it would just cost them a huge portion of their install base. Fortnite is one of very few apps that can afford to attempt this and it's guaranteed to still lose them a lot of users (although considering they're playing this against being forced out of the platform it's probably not going to bug them).
    If they're worried about that, they can just keep using the app store.
    Nobody cares about the epic store. They care about being able to install what they want on their device.
     
    Incidentally Apple's bullshit sideload license means it will be almost impossible to distribute apps outside of something like the epic store, so if that is what's going to happen then the fault lies solely at Apple's feet.
  19. Agree
    Sauron got a reaction from LAwLz in Fortnite is officially returning to iOS, but not for everyone. New Epic Games Store for iOS as well   
    Quoting from Apple:
    These very much look like API level restrictions, not just a pinky promise the developer makes when signing the app store's terms of service. These can still be enforced on sideloads by the operating system.
     
    Also don't be tricked into believing that Apple can somehow prevent facebook from knowing and using your email address if you use it to create your account... all this means is that iOS won't make that information available to the app.
    Maybe they should fix their shitty API then, rather than use it as an excuse to maintain a monopoly and block open source developers.
    If they don't know they will just use the app store. It's already there. Ideally Apple would bury the sideload enabling option three menus deep like android and leave it at that; if you don't know you'll just get a safe default. Heck, make it an obscure ritual like old school console cheats... I don't care. As long as the option is there for people who want it and the only barrier is knowledge, it's fine.
  20. Agree
    Sauron got a reaction from LAwLz in Fortnite is officially returning to iOS, but not for everyone. New Epic Games Store for iOS as well   
    There have always been ways to circumvent app store restrictions with little effort. Also just because the app is sideloaded doesn't mean it suddenly gets privileged access to the operating system; things that are blocked by the API, like tracking location without consent, will still not be possible. This is the case on Android as well.
     
    Speaking of which, on Android sideloading has always been possible and yet there are almost no mainstream apps requiring their own store or a sideload - because in most cases it would just cost them a huge portion of their install base. Fortnite is one of very few apps that can afford to attempt this and it's guaranteed to still lose them a lot of users (although considering they're playing this against being forced out of the platform it's probably not going to bug them).
    If they're worried about that, they can just keep using the app store.
    Nobody cares about the epic store. They care about being able to install what they want on their device.
     
    Incidentally Apple's bullshit sideload license means it will be almost impossible to distribute apps outside of something like the epic store, so if that is what's going to happen then the fault lies solely at Apple's feet.
  21. Like
    Sauron got a reaction from mr moose in Student arrested after sending private joke over snapchat before boarding a plane, message was viewed by security as he was connected to public Wi-Fi   
    Further, knowing or suspecting that your messages could theoretically be accessed by snapchat is not the same as knowing for a fact that they will be, or that there are automatic filters that will alert international police based on keywords like "taliban". We're not even sure that's what happened considering it could also have been reported by someone in the chat (in which case, I'd say the person to be charged with causing a false alarm would be the one who reported it, knowing perfectly well it was a joke) - this may even be more likely considering they knew not just the name of the person but also which plane they would have been boarding, although I'm sure snapchat also collects location data.
     
    I also question the legitimacy of just mass screening people's private conversation without a warrant or prior suspicion, if that's what actually happened, and using it as evidence in a trial. I'm almost certain this is illegal where I live (we even had a big case about the police not being allowed to use intercepted phone calls as evidence, and that was with significant evidence of wrongdoing). You can't even be certain that the person using a given account or phone number is who they claim to be.
  22. Agree
    Sauron got a reaction from Ydfhlx in Fortnite is officially returning to iOS, but not for everyone. New Epic Games Store for iOS as well   
    There have always been ways to circumvent app store restrictions with little effort. Also just because the app is sideloaded doesn't mean it suddenly gets privileged access to the operating system; things that are blocked by the API, like tracking location without consent, will still not be possible. This is the case on Android as well.
     
    Speaking of which, on Android sideloading has always been possible and yet there are almost no mainstream apps requiring their own store or a sideload - because in most cases it would just cost them a huge portion of their install base. Fortnite is one of very few apps that can afford to attempt this and it's guaranteed to still lose them a lot of users (although considering they're playing this against being forced out of the platform it's probably not going to bug them).
    If they're worried about that, they can just keep using the app store.
    Nobody cares about the epic store. They care about being able to install what they want on their device.
     
    Incidentally Apple's bullshit sideload license means it will be almost impossible to distribute apps outside of something like the epic store, so if that is what's going to happen then the fault lies solely at Apple's feet.
  23. Agree
    Sauron reacted to mr moose in Student arrested after sending private joke over snapchat before boarding a plane, message was viewed by security as he was connected to public Wi-Fi   
    It doesn't matter who said what about it in the media or courts etc.  I was showing why it is reasonable for someone to assume a message they send through snapchat to a closed group would remain private.
     
     
    I think you are missing my point all together.  In reference to encryption I said quite clearly:
     
     
     
     
    The position I was defending was not a technical one, it was simply showing how it is unreasonable to assume someone of negligence when any other reasonable person would also have made the same assumptions.
     
     
     
  24. Agree
    Sauron reacted to Eigenvektor in Threads keep going cold   
    It's not a technical issue though.
     
    It's not a bug to be fixed by a developer or something for a moderator to take care of. People either aren't interested in your question to begin with, have no answer to your question, or aren't interested in continuing the conversation for some other reason.
     
    Neither you nor a moderator can force people to continue a conversation they aren't interested in. So you might want to reflect why people abandon your question or accept that you've already been given an answer, even if you might not like it.
  25. Informative
    Sauron got a reaction from LAwLz in Alternative app stores will arive on iOS - but there are substantial caveats   
    It says and/or... https://www.reuters.com/technology/apple-allow-downloads-outside-app-store-eu-with-new-fees-2024-01-25/
     
    I don't think this complies with the spirit of the law. You can't allow sideload but only if they pay you for it. This is already stupidly expensive but if this logic holds what's to stop them from charging you a billion for each sideload, effectively making it impossible? It doesn't work for open source apps that can't afford to pay these fees. Also a huge reason for sideloading is specifically to avoid Apple gatekeeping what you can or can't install on your device... it doesn't work if your app still has to be approved by them before you can install it. With this they can still decide which apps or app stores are even allowed on the device, regardless of the fee.
     
    I don't give Tim Sweeney too much credit but at least he has some legal experience on the matter...:
×