Readit News logoReadit News
aewens commented on A “frozen” dictionary for Python   lwn.net/SubscriberLink/10... · Posted by u/jwilk
mvanbaak · 6 days ago
This was 19 (almost) 20 years ago. As stated in the lwn.net article, a lot of concurrency has been added to python, and it might now be time for something like a frozendict.

Things that were not useful in 2006 might be totally useful in 2026 ;P

Still, like you, I'm curious wether he has anything to say about it.

aewens · 6 days ago
I think Raymond Hettinger is called out specially here because he did a well known talk called [Modern Dictionaries](https://youtu.be/p33CVV29OG8) where around 32:00 to 35:00 in he makes the quip about how younger developers think they need new data structures to handle new problems, but eventually just end up recreating / rediscovering solutions from the 1960s.

“What has been is what will be, and what has been done is what will be done; there is nothing new under the sun.”

aewens commented on A “frozen” dictionary for Python   lwn.net/SubscriberLink/10... · Posted by u/jwilk
bilsbie · 6 days ago
Wow weird Mandela effect for me. I really remember this being a built and actually using it.
aewens · 6 days ago
You may be thinking of the `frozenset()` built in or the third party Python module [frozendict](https://pypi.org/project/frozendict/)?

Personally, I’ve been using a wrapper around `collections.namedtuple` as an underlying data structure to create frozen dictionaries when I’ve needed something like that for a project.

aewens commented on An exposed .git folder let us dox a phishing campaign    · Posted by u/spirovskib
CGamesPlay · a month ago
What leads to the secret being stored in git's config file like that? None of my repositories have that, the remote URLs all just say "git@github.com:foo/bar.git".
aewens · a month ago
The way Git computes diffs is by more or less storing all the source code in the .git directory as objects. At first glance it looks like a bunch of hashes, but tools can pull out source code from the objects tracked within the .git directory. Not least of which, the remote URL points to their username on GitHub and the author for commits can give you their email.
aewens commented on AI model trapped in a Raspberry Pi   blog.adafruit.com/2025/09... · Posted by u/harel
flux3125 · 3 months ago
It'd be even cooler if the LLM could leave notes in text files for its next iteration (like how the guy tattoos his memories in Memento)
aewens · 3 months ago
Sounds reminiscent of SCP-079: https://scp-wiki.wikidot.com/scp-079
aewens commented on LLM-Deflate: Extracting LLMs into Datasets   scalarlm.com/blog/llm-def... · Posted by u/gdiamos
apwell23 · 3 months ago
whats an example of loss?
aewens · 3 months ago
Lossy compression vs lossless compression is the difference of whether you can get a 1:1 copy of the original data if you compress and then decompress it.

A simple example of this is if you have 4 bits of data and have a compression algorithm that turns it into 2 bits of data. If your dataset only contains 0000, 0011, 1100, and 1111; then this can technically be considered lossless compression because we can always reconstruct the exact original data (e.g. 0011 compresses to 01 and can decompress back to 0011, 1100 compresses to 10 and can decompress back to 1100, etc). However, if our dataset later included 1101 and got compressed to 10, this is now “lossy” because it would decompress to 1100, that last bit was “lost”.

An LLM is lossy compression because it lacks the capacity to 1:1 replicate all its input data 100% of the time. It can get quite close in some cases, sure, but it is not perfect every time. So it is considered “lossy”.

aewens commented on Bitty Engine: An itty bitty game engine   paladin-t.github.io/bitty... · Posted by u/user8501
40four · 2 years ago
Silly question from a web dev who has never written a line of Lua before (or delved into game development). What is it about the language that make it such a good fit for game development? Seems like every time I come across these engines, or read stuff about game development in general, Lua is always the language of choice. Can anyone explain it in a nutshell for me? Thanks
aewens · 2 years ago
Probably since you can embed it in other languages quite trivially. For instance, in C after about a dozen lines of code you can now pass around data into Lua and back to C and thus give you access to a scripting language with little fuss. It’s also a fairly small and simple language, so adding it in won’t add much more to the overall footprint of the project.
aewens commented on Keep Linux Open and Free–We Can’t Afford Not To   oracle.com/news/announcem... · Posted by u/geerlingguy
zeroxfe · 2 years ago
The timing of this is hilarious: https://twitter.com/chatsidhartha/status/1649484240952721408

Oracle just sent a legal threat to "Rust for Javascript" to remove "Javascript" from their name. (Oracle owns the "Javascript" trademark.)

aewens · 2 years ago
To play the devil's advocate:

IANAL, but if I recall correctly part of having a trademark is having a legal obligation to enforce it, and if I'm reading the tweet correctly this is a name of a company and typically one cannot use a trademark in their company name.

aewens commented on An Update on the Lock Icon   blog.chromium.org/2023/05... · Posted by u/semenko
cyclotron3k · 3 years ago
I never understood why a website served using a self-signed (and untrusted) certificate would throw up more warnings than a website served without any encryption at all.

Even today, a page served over HTTP just gets an unobtrusive bit of text saying "Not secure", but if a page is served over HTTPS with a cert that expired yesterday you will get a very scary full-page warning that entirely blocks you from accessing the underlying page.

It seems totally backwards to me.

aewens · 3 years ago
An analogy may help, imagine the website as a door. A website using HTTP is a normal door and using HTTPS is a door with a lock, where the keyring in this analogy are the trusted CAs by your browser. A website using HTTPS with an expired certificate is a door that should have a lock, but the lock no longer latches; and a self-signed certificate is a locked door with a key left in the doorknob.

From a security perspective, a door without a lock has no expectation of protecting anything. But a door that should lock but doesn’t, or is supposed to be locked but has the key left in the latch is not providing the security expected, and should be given pause when anticipating security from the lock. This is what the browser is trying to translate with its UI.

aewens commented on I use Nix and make(1) to develop   glorifiedgluer.com/blog/2... · Posted by u/todsacerdoti
aewens · 3 years ago
Skimming over the contents of the "About" page linked in the navigation at the top of the blog, it looks to answer most of your questions ;)

https://glorifiedgluer.com/about

The OP appears to be student and software engineer that is employed writing F# and Nix, and made the blog purely as an outlet to document the things they are interested in (and good on them that).

aewens commented on Passwordless Authentication – Access Your Bitwarden Web Vault Without a Password   bitwarden.com/blog/passwo... · Posted by u/jacooper
martin_a · 3 years ago
> MFA using an SMS is not secure.

Why not? Is it that easy to intercept a SMS or is that just due to poor handling with some providers?

aewens · 3 years ago
No the parent, but I’m assuming they’re referring to the East of SIM spoofing to convince providers you’re another phone number that’s not your own.

u/aewens

KarmaCake day61April 9, 2016View Original