• 0 Posts
  • 264 Comments
Joined 1 year ago
cake
Cake day: June 30th, 2023

help-circle



  • Interesting.
    I love creative applications of shaders. They are very powerful.

    In my opinion only, but willing to discuss.
    And I’ll preface this by saying if I tried to publish a scientific paper and my formulas used a bunch of made up symbols that are not standardised, I imagine it would get a lot of corrections on peer review.

    So, from a programming perspective, don’t use abbreviations.
    Basically working on naming.

    I can read that TAU is the diffusion rate due to a comment. Then I dig further into the code as I am trying to figure something out and I encounter tau. Now I have to remember that tau is explained by a comment, instead of the name of the variable. Why not call it diffusionRate then have a comment indicating this is TAU.
    A science person will be able to find the comment indicating where it is initialised and be able to adjust it without having to know programming. A programming person will be able to understand what it does without having to know science things.
    Programming is essentially writing code to be read.
    It’s written once and read many times.

    Similar with the K variables.
    K is reactionRate.
    K1 is reactionKillRate.
    K2 is reactionFeedRate.
    Scientists know what these are. But I would only expect to see variables like this in some bizarre nested loop, and I would consider it a code smell.

    The inboundFlow “line” has a lot going on with little explanation (except in comments). The calculation is already happening and going into memory. Why not name that memory with variables?
    Things like adjacentFlow and diagonalFlow to essentially name those respective lines.
    Could even have adjacentFlowWeight and diagonalFlowWeight for some of those “magic numbers”.
    Comments shouldn’t explain what is happening, but why it’s happening.
    The code already explains what is happening.
    So a comment indicating what the overall formula is, how that relates to the used variables, then the variables essentially explain what each part of it is.
    If a line is getting too complicated to be easily understood, then parting it out into further variables (or even function call, tho not applicable here) will help.
    I would put in an editted example, however I’m on mobile and I know I will mess up the formatting.

    A final style note, however I’m not certain on this.
    I presume 1. and 1.0 are identical representing the float value of 1.0?
    In which case, standardise to 1.0
    There are instances of 2.0 and 2.
    While both are functionally identical, something like (1.0, 1.0, 1.0) is going to be easier to spot that these are floats, as well as spotting typos/commas - when compared to (1., 1., 1.,).
    IMO, at least




  • Oh, this is on android yt app.
    Pixel 8pro, so Google & Google.
    There isn’t any variable that they don’t have control of.
    Video playback after ads skips 500ms, plays 500ms, skips 500ms etc. Changing quality doesn’t fixing it. Play/pause doesn’t fix it, skipping doesn’t fix it. I have to fully quit YT app and restart it to get playback again, and chances are it starts the ads again.
    Never had an issue on FF, w10 or Linux.

    I get that streaming video is expensive for bandwidth. And creators need an incentive to create.
    I don’t expect it for free. I don’t YT enough to warrant a premium subscription.
    The ads literally break the platform for me.
    Makes sense to me to get into one of the alternative clients… But I don’t want to not pay my dues… It’s just not worth the £13 a month: there is no way I’m consuming that much content.




  • I feel like for a long time, CUDA was a laser looking for a problem.
    It’s just that the current (AI) problem might solve expensive employment issues.
    It’s just that C-Suite/managers are pointing that laser at the creatives instead of the jobs whose task it is to accumulate easily digestible facts and produce a set of instructions. You know, like C-Suites and middle/upper managers do.
    And NVidia have pushed CUDA so hard.

    AMD have ROCM, an open source cuda equivalent for amd.
    But it’s kinda like Linux Vs windows. NVidia CUDA is just so damn prevalent.
    I guess it was first. Cuda has wider compatibility with Nvidia cards than rocm with AMD cards.
    The only way AMD can win is to show a performance boost for a power reduction and cheaper hardware. So many people are entrenched in NVidia, the cost to switching to rocm/amd is a huge gamble






  • Sure, but the fines have gone unpaid.
    The private owner of the private company X has enough money to cover the fines.
    Brazil is now seizing assets to try and recover the amount due.

    X isn’t declaring bankruptcy. X is flaunting legal rulings and dodging fines.
    If that scares away “investors” that are going to skirt or flaunt laws, rulings and legality then it seems like a decent result for Brazil.




  • AI is hype.
    They’ve recently signed a deal with Reddit for AI parsable data. Reddit reciprocated by allowing Google to be the only indexable search engine.
    Google now thinks it can do the same to literally everyone else.
    Googling is pretty damn mainstream.
    Don’t give Google your data, then don’t be included in googles search results. It’s like a flip of their previous trade with reddit, except it’s not a trade. It’s extortion.

    Reddit never gave Google traffic. They gave them content and data.
    And Google thinks it can withdraw traffic from other sites unless they get data in return.
    Google is a monopoly.
    Literally extortion


  • I get what you are saying, but the balance is off.
    YT premium costs (edit) more than a streaming service per month.
    There are no industry leading movies or series released exclusively on YouTube.
    YouTubes benefits of premium is “not being delivered ‘skip after 5 seconds’ live streams” as an ad that will play indefinitely (or at least for hours).
    Also, streaming services provide much better series discovery. Ie, find a show you like and easily discover the start of that series, then binge watch the entire series in order.
    YT premium is basically a “play next” queue, 1080p, and no ads.
    It doesn’t (AFAIK) support creators any more. It’s literally just a fee to not-be-inconvenienced, and it’s not great at that