Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)QW
qwop @programming.dev
Posts 6
Comments 86
Why and How Does Python Use Bloom Filters in String Processing?
  • UTF-8 is an encoding for unicode, that means it's a way of representing a unicode string as actual bytes on a computer.

    It is variable length and works by using the first bits of each byte to indicate how many bytes are are needed to represent the current character.

    Python also uses an encoding, as you describe in the article, but it's different to UTF-8. Unlike unicode, all characters in Python's representation of the unicode string use the same number of bytes, which is the maximum that any individual unicode character in the string needs.

    I'd probably mess up a more detailed explanation of UTF-8 or Python's representation, so I'll let you look into how they work in more detail if you're interested.

  • Why and How Does Python Use Bloom Filters in String Processing?
  • The article says that CPython represents strings as UTF-8 encoded, which is not correct. The details about how it works are correct, just that's not UTF-8.

    That's just a minor point though, nice article.

  • How many people actually dropped Reddit for Lemmy?
  • Well I kept using it until Infinity died, which was only at the start of this month!

    If I do decide to go back, it will be by compiling the infinity APK with my own API key, but I'm not feeling much of an urge to bother at the moment.

  • After 6 hours
  • It probably really depends on the project, though I'd probably try and start with the tests that are easiest/nicest to write and those which will be most useful. Look for complex logic that is also quite self-contained.

    That will probably help to convince others of the value of tests if they aren't onboard already.

  • Simply explained: how does GPT work?
  • I think calling it just like a database of likely responses is too much of a simplification and downplays what it is capable of.

    I also don't really see why the way it works is relevant to it being "smart" or not. It depends how you define "smart", but I don't see any proof of the assumptions people seem to make about the limitations of what an LLM could be capable of (with a larger model, better dataset, better training, etc).

    I'm definitely not saying I can tell what LLMs could be capable of, but I think saying "people think ChatGPT is smart but it actually isn't because <simplification of what an LLM is>" is missing a vital step to make it a valid logical argument.

    The argument is relying on incorrect intuition people have. Before seeing ChatGPT I reckon if you'd told people how an LLM worked they wouldn't have expected it to be able to do things it can do (for example if you ask it to write a rhyming poem about a niche subject it wouldn't have a comparable poem about in its dataset).

    A better argument would be to pick something that LLMs can't currently do that it should be able to do if it's "smart", and explain the inherent limitation of an LLM which prevents it from doing that. This isn't something I've really seen, I guess because it's not easy to do. The closest I've seen is an explanation of why LLMs are bad at e.g. maths (like adding large numbers), but I've still not seen anything to convince me that this is an inherent limitation of LLMs.

  • Get into devops
  • The things I'm doing are mainly just as a hobby at the moment, so the advice of others may be more relevant to you, but I've learned a lot from and really enjoyed just creating a really overkill stack for a simple web app I made.

    I'm talking setting up grafana for monitoring, using ansible/terraform, setting up backups, etc etc. Lots of just picking cool software I've heard about and trying to stuff it into my use case.

  • How do I remove unnecessary python packages? At global and in vnev?
  • Yeah, my experience with docker on windows has been pretty bad, uses high CPU and RAM at the best of times, at the worst completely hangs my computer on 100% CPU usage forcing a restart as the only fix.

    I really don't understand why people are overcomplicating this. You can install multiple Python versions at once on Windows and it just works fine (you can use the py command to select the one you want).

    Virtual environments are designed exactly for this use case. They've got integrations for pretty much everything, they're easy to delete/recreate, they're really simple to use, they're fast, and they just work.

    If virtual environments alone aren't quite enough you can use something like poetry or pipenv or the many other package management options, but in many cases even that is overkill.

  • Are We going to defederate from Threads
  • Same.

    We can defederate at any point, and I think it's too early to say federating would definitely cause harm to our community. I'd prefer to see how things go, keeping our hands close to big red "defederate" button.

  • Monthly Release Notes - June 2023 (version 1.80)
  • Wow, displaying images in the terminal is pretty cool. I'm not even sure Windows Terminal supports that so I'm surprised VSCode got it first.

    The new diff editor also looks cool. Something I use a fair amount so I might try out the experimental version.

  • Python Security Developer-in-Residence – Weekly Report #2

    sethmlarson.dev Security Developer-in-Residence – Weekly Report #2

    This critical role would not be possible without funding from the OpenSSF Alpha-Omega Project. Massive thank-you to Alpha-Omega for investing in the security of the Python ecosystem! Second ...

    Security Developer-in-Residence – Weekly Report #2

    Featuring:

    • Identifying bundled libraries on Python distributions to help scanning for vulnerabilities.
    • Trusted Publisher adoption metrics.
    • GitHub push protection for PyPI API tokens.

    Lots of great stuff!

    0

    GitLab Outage - c/DevOps

    programming.dev GitLab Outage - programming.dev

    Seems to be back up now, still waiting for information on the cause, so far have the vague reason “config change” from the GitLab issue linked

    Cross Posting from DevOps, I hope this is the correct way of doing that and it's considered acceptable.

    0

    GitLab Outage - c/DevOps

    Cross Posting from DevOps, I hope this is the correct way of doing that and it's considered acceptable.

    2

    GitLab Outage

    status.gitlab.com GitLab System Status

    This status page is exclusively intended for monitoring GitLab.com and its associated services. If there are any performance or service interruptions, an update will be posted here. If you are encountering service interruptions on GitLab Dedicated, please submit a support request.

    Seems to be back up now, still waiting for information on the cause, so far have the vague reason "config change" from the GitLab issue linked

    2

    Python Security Developer-in-Residence – Weekly Report #1

    sethmlarson.dev Security Developer-in-Residence – Weekly Report #1

    This critical role would not be possible without funding from the OpenSSF Alpha-Omega Project. Massive thank-you to Alpha-Omega for investing in the security of the Python ecosystem! Welcome...

    See Seth's earlier post Announcing that he was taking up the place: https://sethmlarson.dev/security-developer-in-residence

    2

    Python 2 in Python 3!

    A post about how this community's banner used the python 2 print syntax - print "Hello World" - made me question, can we print a hello world message in Python 3 without using parentheses?

    It turned out to be sort of a fun challenge, I've found 3 different approaches that work. I'd be interested to see what you come up with! (it seems I can't put spoilers in Lemmy, so I won't share my solutions yet in case y'all want to have a go).

    Edit: Posted my solutions in the comments

    12