Hacker Newsnew | past | comments | ask | show | jobs | submit | grep_it's commentslogin

Would this logic apply to domain specific allocators? Memcached for example uses a pretty simple slab style allocator[0] to manage a preallocated pool of memory, and afaict, they have a mutex over any threads interaction with it.

0: https://github.com/memcached/memcached/blob/master/slabs.c


I came across the paper on google scholar while looking into radix trees. Funny enough there was a recent post from valkey on dropping the skiplist in favour of a btree for their sorted set[0].

Looking forward to the blog post!

0: https://news.ycombinator.com/item?id=50534387


This view is narrow minded and reductive. You imply playing with toys isn’t a life well lived, but peel back any value system that you’ve set up, explicit, or otherwise, and you may find nihilism at the end.

A cage went in search of a bird.


I find that partitioning by key range tends to be more flexible and malleable to rebalancing (merge, splits, etc). Doing things like CRC16(key) % 16384 tends to bite eventually.

Not only are they still being manufactured, but they are continuing to see innovations. Heat assisted magnetic recording (HAMR), mentioned in the article, which will heat disk via the R/W head, allowing for higher density drives.

... and Doug's perl script, which was never committed to source control. It lives on a single box and silently upholds a number of implicit system invariants. In someones inbox is an email from Doug, sent just before he retired, that the script needs to be copied over to the new box before the hardware migration is complete.

no one has heard from Doug in years, after he moved into that shack he and his brother built out in Montana

After pi’s got expensive I started picking up refurbished Dell micros and Lenovo tinys cheap and haven’t looked back. They are also perfect for the 10” mini rack[0].

0: https://github.com/geerlingguy/mini-rack#build-showcase


Same. I have two Dell SFF 3070s and some MSI micro units in a rack - planning on getting some more for my Proxmox cluster. ServeTheHome has a great resource for the compute nodes [0] and GeekPi makes some awesome 10" racks [1]

[0] https://www.servethehome.com/introducing-project-tinyminimic...

[1] https://www.amazon.com/GeeekPi-Cabinet-Equipment-RackMate-Ra...


Shoutouts as well for the USFF HP Elitedesk and Prodesks. They are amazing. I even got one with a Ryzen CPU that had a dedicated GPU option - that GPU part was on eBay brand new for $60 and replaced the hard drive bracket. Not on par with a desktop GPU but way better than integrated graphics, for things like Minecraft in my case. I use a second one, this one Intel with 32GB of RAM, as my home server. (Jellyfin, Home Assistant, Tailscale, miscellaneous stuff).


What's cheap? Over here they easily run $300-$500 for thinkcentres and dell micros unless they're intel 4th gen with DDR3 8GB.


Those minis have gone up in price too.


Tim's description of dicts always stuck with me by describing the hash table slot states as one of citizen, virgin, or turd[1]. <wink>

1: https://mail.python.org/pipermail/python-list/2000-March/048...


Similar experience here, except it was Qbasic followed by Delphi. Good memories of passing our dumb little games around the compute lab. It wasn't till later in life that I connected Pascal to Wirth when reading Algorithms + Data Structures = Programs (I still think the last chapter on compilers holds amazing as an introduction to the subject).


I've had good success with just using mypyc (https://mypyc.readthedocs.io/en/latest/introduction.html) on typed python code.


> on typed python code.

A fairly massive undertaking for existing code, which jit was supposed to be useful for.


You can use static type analysers and runtime type profilers to add type annotations to a legacy codebase, but the interesting bit would be if you're built on top of a large untyped codebase you don't control like, say, Django, how far it can go.


I would imagine that the LLM has a much easier time adding correct type annotations to old Python code than it does translating it to C.


In my experiments with this, maybe, sorta, it'll do some AST stuff then it'll go "dang this shit is dynamic AF" then suggest a static type inference tool, then a runtime type profiler.

Which honestly, is the right approach.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: