• 1 Post
  • 2.52K Comments
Joined 3 years ago
cake
Cake day: June 21st, 2023

help-circle



  • C# is what you get when someone looks at Java and says “but what if we actually added functional programming elements to it instead of forcing the OOP Kool-Aid on all our users?”

    It’s full of random functional features spanning from pattern matching to discriminated union types. It also has a lot of really random stuff that nobody asked for, like LINQ syntax.

    On the other hand, Java took a different approach. They were so insistent on forcing OOP on their users that the users made a rich ecosystem of functional languages on the JVM out of spite, like Scala, Kotlin, and Groovy.

    These days, Java has been a bit more progressive with their feature set, but C# is far better if you’re looking for functional features.


  • I have a friend who just failed a leetcode-style interview (senior level position). He apparently wasn’t very interested in the job anyway, but was annoyed that he had to do it all in Python (and Python only) rather than a language he had more recent experience with. I didn’t ask much about the rest of the interview, but those obnoxious leetcode interviews do exist.

    (As an aside, where I work, we’ve had a policy for years now that we don’t do leetcode-style interviews. They’re a terrible measure of how good of a fit a role is for a candidate, after all.)


  • He blew through a barrier in an airport in the fucking US of all countries, refused to identify, and didn’t get arrested? I’m genuinely shocked (though that would have really sucked so glad that didn’t happen).

    With regards to him making friends, maybe he struggles socially? It’s also possible he’s just more of an introvert. You’d know better than anyone else here.

    Scott keeps buying drinks but finds himself adrift. This was the whole fucking point of my excursion up here, and IT HAS FAILED.

    I don’t know the circumstances, but just showing up at all may have been more impactful than you realize. A lot of people get stuck in their head and come back to their senses when they realize that there are people around who genuinely care about them. Anyway, all I can do is wish the best of luck.


  • Maybe a different kind of solution to what you’re looking for, but JSON-LD does this in a distributed (multi-system) manner. Maybe a little more distributed than you want, though.

    Essentially, you can use IRIs (and IRI references) to point to specific objects/subtrees. The thing is, IRIs are usually dereferenceable as URLs that point to the object’s value, so you’d use a HTTP client to fetch it in order to dereference the data.

    It’s used by Lemmy of course (and ActivityPub in general), and it’s mostly designed when you have different people publishing JSON documents that want to link to each other.


    More along the lines of what you’re probably looking for is any NoSQL document database. You want to be able to set an index within the document that the database can use for fast lookups. There’s a ton out there, so not much point listing them here when you can find lists online very easily.

    Personally, I’d rather just use a SQL database for this though. To begin with, you wouldn’t design your database to be a single, large, ever-growing JSON document, but rather several JSON documents (one per “object” being stored, like one per user). This allows your distributed database to split the load on requests coming in via sharding as well as help it quickly find what you’re looking for (assuming your query is on an indexed key). SQL databases let you better structure the data you actually intend to query on (IDs, names, whatever), and you can put whatever other attached data you want as a JSON field (Postgres JSONB for example).


  • What I’ve noticed over time is that people have tended towards smaller gatherings, and I think it really has to do with how much easier it is to do small informal parties than large ones that require planning.

    For example, my friends who live nearby are all in different countries right now for various trips, so my partner ordered some premade turkey for just us (only around 3lbs worth), and I went shopping on Thanksgiving for whatever we felt like eating with it. Interestingly, the store was not busy at all, and they were fully stocked. Whole dinner took 2 hours to prepare, and cleanup was fast. It was great, honestly. We had turkey, stuffing, green bean casserole, and garlic mashed potatoes.

    Meanwhile, we have family that spent the whole day preparing, cooking, bickering about who does what or how cooked the turkey needs to be or whatever, all for them to actually tell us that our meal looked better when they saw some pictures. All that work, and from a distance, it really just seems like most of it was coordinating the event. Cooking also certainly took longer considering how much more food they needed for everyone.


    In any case, I don’t really like when people flake for no reason. If someone’s not feeling well suddenly, then sure. I don’t think people want to catch whatever illness you have (assuming it’s contagious). If they agree to go and just don’t show up? Well, the host already planned for you to be there, so it really is just rude to the host. At least have the courtesy of notifying them with enough advance notice to adjust for your absense.

    Not really sure why that’s so much of a problem now compared to before, but it hasn’t been a thing around me fortunately.




  • What do you think? Can this help in slowing down the build-out of data-centers?

    No. It misses the fundamental reasons why data centers are being built.

    The demand for more data centers is artificial. That’s not to say that people couldn’t use the compute, but rather that the shovel vendors in charge are the ones manufacturing a large part of the demand. We already know this based on statements made by Nvidia themselves. They create their own demand through well-documented circular financing.

    There will continue to be more and more data centers until the corruption and blatant market abuse ends. Keep in mind that we can’t even power the data centers we already have and are building. They don’t need more places to provide compute. They need more energy to power what already exists. The new data center projects are just part of the grift as they steal more and more money from people.


  • From what I’ve seen, you can’t just give a LLM a two sentence prompt and come back later to a nice polished project, despite all of the breathless hype telling you otherwise.

    Honestly? The coworkers I’ve seen who are using it most effectively do exactly this. There’s no reason to write out paragraphs of prose to need to correct it anyway when you’re only accepting a small set of changes to begin with. If good code isn’t self-evident in the codebase, it’s an issue with the codebase that needs to be addressed, and no amount of do/don’t lists or paragraphs of prose will stop an LLM from mirroring what it already sees.

    It uses git commits as a memory store

    This I haven’t seen, unless you’re referring to all the conventional-style commits it generates which end up as noise for reviewers. (We only review the final diff anyway so whatever)

    Personally, I don’t let LLMs commit anything for me. While committing everything myself, I go through and review all the changes. It’s a practice I’ve been following for a long while now and has always proven useful to me to help with reinforcing my understanding of the changes, spotting any leftover changes from debugging, and so on.

    But - if you treat it like a code generator tool that needs your input, supervision, and guidance to keep on track for modestly-sized chunks of code that you construct an entire codebase with, it can absolutely save you time.

    This, I agree with to some extent. For small changes, I’ve seen it able to work somewhat well. Usually those changes are straightforward, obvious changes that are easy and quick to review.

    That being the case, tell this to the people I work with. I’ve certainly tried. Shit, someone relatively high up the management chain did just a couple weeks ago and people retained it for all of 30 seconds.

    And the last few years have seen a decent jump in performance. The frontier ones have decent context and reasoning skills, which is handy when you’re sifting through someone’s poorly documented business logic. But they are nowhere close to being able to manage a large codebase by themselves.

    Agreed again, of course. I wasn’t claiming there weren’t improvements. What’s being promised simply isn’t what’s being delivered, and they need to be viewed from a realistic lens. Unfortunately, I have limited control over anyone but myself, yet I am subjected regularly to slop that others produce.


  • Seriously have you tried Opus 5.5?

    Opus wrote all the code I’ve been deleting for the past few weeks at work. Nearly 100k lines of code for CI/CD on a couple simple services.

    It comes with a full test suite too! Brilliant tests, like asserting that the README contains specific substrings and the sha1 checksums of the source files don’t change. Naturally, should those checks fail, the CI generously informs the developer that they made the mistake of modifying the code. A LLM would at least have had the courtesy of updating the checksums.

    But was it Opus 5.5?

    No clue! Why should I care? Is it my job to mandate that everyone uses the newest model that exists? It was using Opus something-or-another, which was the revolutionary new model that would end software development before the next revolutionary new model that would end software development came out. Or maybe it was the newest version, no idea.

    I’ve used Astra (which might end humanity or something?) and gotten the same level of unmitigated slop, though. It took me a while to get it to produce any code I’d accept at all, and most of it still needs to be rewritten.

    If you genuinely are producing code that fast, then I don’t see any way how anybody could keep up with what it all does.


  • pcyop to distract from

    This is a weird way to start a comment. By this logic, any news is a “pcyop” [sic] if it occurs at the same time as something else.

    I’d recommend starting a new post if you’re interested in discussion on that bill. Do you have a link to a summary about it, or why it’s important? It’d make it a lot more digestible than reading through hundreds of pages to try to understand what it is (which I genuinely just don’t have time to do). That would make it easier to engage in a discussion about it.






  • SEA does departures two levels above arrivals, but when there’s heavy congestion in one line, they ask you to flip them around (so pickup in the departures area and drop off at the arrivals area). In that sense, you could say they’re somewhat similar during high traffic.

    Thinking about it now, though, I’ve only really seen airports do arrivals at ground level, not elevated above it.