Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Laya the open source version of Jev(convaiinnovations.com ↗)
    124comments
  2. A graphical desktop for the ZX Spectrum(github.com/mindbox77 ↗)
    39comments
  3. Tin: full-text search for Postgres(planetscale.com ↗)
    22comments
  4. AI-generated posters don’t have to be horrible(john.hartnup.uk ↗)
    427comments
  5. Human brain is two separate organs, Stanford Medicine-led research finds(stanford.edu ↗)
    176comments
  6. Jobs Without LeetCode(noleet.lol ↗)
    discuss
  7. Black Holes or Black Hole Stars? Astronomers Spar over 'Little Red Dots'(quantamagazine.org ↗)
    11comments
  8. “The Secret Life of Circuits” is here(coredump.cx ↗)
    49comments
  9. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    543comments
  10. I built the fastest PHP webserver in the world(qbixserver.com ↗)
    16comments
  11. What Zig felt like, coming from Rust(besok.github.io ↗)
    94comments
  12. Agreement between the USA and Denmark (1951,2004) [pdf](state.gov ↗)
    1comments
  13. Asking Authors About Their Own Papers(medium.com/tmlrorg ↗)
    29comments
  14. San Francisco Onion Futures Company(onionfutures.com ↗)
    105comments
  15. GPT-6 Astra Solves a WWI German Radio Cipher(prinzai.com ↗)
    126comments
  16. If math is more than proof, we need to better celebrate the rest of it(terrytao.wordpress.com ↗)
    186comments
  17. New evidence for hidden chambers beyond Tutankhamun's tomb(nature.com ↗)
    1comments
  18. Learning Another Language May Be One of the Best Ways to Keep Your Brain Healthy(theconversation.com ↗)
    33comments
  19. Cloudflare Quick Tunnels(cloudflare.com ↗)
    301comments
  20. How to Write with an LLM(sockpuppet.org ↗)
    360comments
  21. You can run Git on object storage if you re-make packfiles(tigrisdata.com ↗)
    23comments
  22. Communication by means of modulated Johnson noise(pnas.org ↗)
    18comments
  23. Saving another 100TB of RAM(cloudflare.com ↗)
    89comments
  24. SDCC – Small Device C Compiler(sourceforge.net ↗)
    23comments
  25. Ray Ozzie and the Optimism of Being Early(reproof.app ↗)
    9comments
  26. Science Is Open Software(jepedersen.dk ↗)
    50comments
  27. From Stonemasons to Carpenters(thelastsoftwareengineer.substack.com ↗)
    4comments
  28. Why building a Rust LSP is hard(rust-glancer.github.io ↗)
    44comments
  29. Ctenophores: Wonders of Biology(quantamagazine.org ↗)
    7comments
  30. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    122comments

Redis

23 pointsby 17y agocode.google.com
11 comments
17y agoHN ↗

Just to give you some rough range, Redis is in the range of 10k query/second on an entry level laptop. As you can guess the main bottleneck is the networking I/O with things like Memcached or Redis.

About the speed of dumping the DB. 1 million keys DB with 16 bytes string inside every key takes something like 1 second to be saved on the same HW. For the next release I hope to have replication and LZO compression of (compressible) big values working.

17y agoHN ↗

Since it's in C, it probably has an edge, but as I've mentioned to antirez a couple of times, I'd love to see someone take a crack at this in Erlang - this is exactly the kind of thing it was built for.

17y agoHN ↗

Nice project, I already read about it. Still note that one of the major points of Redis is to support more complex types as values. Tokyo Cabinet is basically an on-disk hash table library, with an optional networking server using this lib to export the functionality.

For example if you want to use Redis in order to store logs from a lot of different computers, and you want to only take the last 1000 entries for every computer, all you need to do is for every computer something like this:

    RPUSH computer_5 "... your log line ..."
    LTRIM computer_5 0 999

Redis offers atomic LPOP/RPOP too, this makes pretty easy to create queues where different computers can pop/push values with the guarantee the operation is atomic.

Another trivial example: think about implementing something like YC with a key-value DB. Support for lists and sets will make your life much easier :)

17y agoHN ↗

Umm redis is really cool. Nice job on this antirez. I've just finished implementing the entire spec here:

http://github.com/ezmobius/redis-rb/blob/0951204e6a84ca335ac...

And I am really enjoying being able to store lists as values and pushing/popping/indexing. Looking forward to where you are going with this.

Although the current release doesn't seem to support all the documented features yet. incrby and decrby don't work yet.

Can you get in touch? I'd love to pick your brain a little about redis.

17y agoHN ↗

Thanks! your implementation is cool and if you agree will just be the Ruby implementation distributed with Redis. INCRBY/DECRBY are still missing but in a week I plan to have this, all the Set operations inside and release another beta. Then will be the time of replication and compression. And finally I plan to write a fail-over daemon that will handle masters and slaves, check who is running and who appears to be down and act accordingly.