• 0 Posts
  • 245 Comments
Joined 2 years ago
cake
Cake day: December 29th, 2023

help-circle




  • the thing that everyone always glosses over is that jellyfin should not be run on a public network. it has known security vulnerabilities… that includes VPN remote proxy, so now you have to have external users on your actual VPN, and if that’s the case then plex will work fine because it’s “local”, and has a lot more features

    (and my main issue: media segments don’t work on swiftfin)






  • Pup Biru@aussie.zonetoMemes@lemmy.mlGuns good
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 month ago

    if you’re taking about charlie kirk with that “civil conversation” bit, those conversations were using misleading half truths to publicly debate people he disagrees with in order to convert the people around said debate to his cause. i wouldn’t call that civil… civil is healthy, truthful debate on the merits: not winning at all costs






  • apple silicon has specific changes to amd64, and some extra instructions to help with x86 translation afaik (1 of the main things i think is how memory is laid out is different somehow? so every memory access needs extra clock cycles to accomplish in standard arm64)

    but in general, rosetta2 is incredible: very little performance loss… i thiiink it’s something like 2-10%, which is made up for by the cheaper cores

    from what i understand, graphics is more of a problem… metal just isn’t well supported - i think the standard thing is you have to do direct x <-> dxvk <-> vulkan <-> moltenvk <-> metal, which is a huge overhead and is far from perfect in its translations





  • Implementing a function isn’t for a “fancy autocomplete”, it’s for a brain to do. Unless all you do is reinventing the wheel, then yeah, it can generate a decent wheel for you.

    pretty much every line of code we write in modern software isn’t unique… we use so many orders of magnitude more lines of other people’s code than our own, we’re really just plumbing pipes together

    most functions we write that aren’t business logic specific to the problem domain of our software (and even sometimes then) has been written before… the novel part isn’t in the function body: the low level instructions… the novel part is how those instructions are structured… that may as well be pseudocode, and that pseudocode may as well take the form of function headers

    Fuck no. If it gets the test wrong, it won’t necessarily fail. It might very well pass even when it should fail, and that’s something you won’t know unless you review every single line it spits out. That’s one of the worst areas to use an LLM.

    write tests, tests fail, write code, tests slowly start to pass until you’re done… this is how we’ve always done TDD because it ensures the tests fail when they should. this is a good idea with or without LLMs because humans fuck up unit tests all the time

    I’m not sure what you mean by that.

    for example, you have an external API of some kind with an enum expressed via JSON as a string and you want to implement that API including a proper Enum object… an LLM can more easily generate that code than i can, and the longer the list of values the more cumbersome the task gets

    especially effective for generating API wrappers because they basically amount to function some_name -> api client -> call /api/someName

    this is basically a data transformation problem: translate from some structure to a well-defined chunk of code that matches the semantics of your language of choice

    this is annoying for a human, and an LLM can smash out a whole type safe library in seconds based on little more than plain english docs

    it might not be 100% right, but the price for failure is an error that you’ll see and can fix before the code hits production

    and of course it’s better to generate all this using swagger specs, but they’re not always available and tend not to follow language conventions quite so well

    for a concrete example, i wanted to interact with blackmagic pocket cinema cameras via bluetooth in swift on ios: something they don’t provide an SDK for… they do, however document their bluetooth protocols

    https://documents.blackmagicdesign.com/UserManuals/BlackmagicPocketCinemaCameraManual.pdf?_v=1742540411000

    (page 157 if you’re interested)

    it’s incredibly cumbersome, and basically involves packing binary data into a packet that represents a different protocol called SDI… this would have been horrible to try and work out on my own, but with the general idea of how the protocol worked, i structured the functions, wrote some test case using the examples they provided, handed chatgpt the pdf and used it to help me with the bitbanging nonsense and translating their commands and positionally placed binaries into actual function calls

    could i have done it? sure, but why would i? chat gpt did in 10 seconds what probably would have taken me at least a few hours of copying data from 7 pages of a table in a pdf - a task i dont enjoy doing, in a language i don’t know very well


  • if the only point of hiring junior devs were to skill them up so they’d be useful in the future, nobody would hire junior devs

    LLMs aren’t the brain: they’re exactly what they are… a fancy auto complete…

    type a function header, let if fill the body… as long as you’re descriptive enough and the function is simple enough to understand (as all well structured code should be) it usually gets it pretty right: it’s somewhat of a substitute for libraries, but not for your own structure

    let it generate unit tests: doesn’t matter if it gets it wrong because the test will fail; it’ll write a pretty solid test suite using edge cases you may have forgotten

    fill lines of data based on other data structures: it can transform text quicker than you can write regex and i’ve never had it fail at this

    let it name functions based on a description… you can’t think of the words, but an LLM has a very wide vocabulary and - whilst not knowledge - does have a pretty good handle on synonyms and summary etc

    there’s load of things LLMs are good for, but unless you’re just learning something new and you know your code will be garbage anyway, none of those things replace your brain: just repetitive crap you probably hate to start with because you could explain it to a non-programmer and they could carry out the tasks