News for hackers. Stuff that matters.

scalalang

Re:Vision Language Models Are Biased on Thursday June 12, 2025 @10:56PM (#44265358)
https://arxiv.org/pdf/2407.21771

In this research, they revealed that the VLM can pay more attention to the image simply by chaining attention weights.

Hello, Thank you for replying here :)

Many of answers you replied are reasonable and good.

---------

And I just want to add more comments for others.

1. SIEVE is not scan-resistant, so that, I think it should only be applied for web cache workloads (typlically follows power-law distribution)

2. SIEVE is somewhat scalalbe for read-intensive applications (e.g. blog, shop and etc), because it doesn't require to hold a lock on cahce hit.

3. The purpose of golang-fifo is to provide simple and efficient cache implementation (e.g. hashicorp-lru, groupcache).

-> I don't want to beat high-performant, bla-bla, specialized in-memory caches (bigcache, fastcache and etc).

-> Both S3-FIFO and SEIVE have O(n) worst-case cache eviction. and it only happens when all of objects in the cache are hit, which means, a perfect(100%) hit rate in sequences.

4. when increasing contention otter sacrifices 1-2 percent

-> I think that the statement is not enough. The hit rate varies depending on the total number of objects and the size of the cache, so it should be compared relatively. for example, otter's efficiency decreased by 5% compared to single-threaded when lock contention increased (decreased efficiency makes a mean network latency higher, because it may need to conduct heavy operation e.g. re-calculation, database access and so on)

-> Therefore, in certain situations, the efficiency of a cache library may be more important than its QPS. This is not a matter of which one is better, but rather that other people should be able to choose a cache library that suits the specific needs of their application.

5. ghost queue : honetly at that time of writing the code, I didn't deep dive into the bucket table implementation, it may not work same as actual bucket hash table (see here: https://github.com/scalalang2/golang-fifo/issues/16)

---

If anyone here want to raise issues or give contributions for golang-fifo, please visit here https://github.com/scalalang2/golang-fifo

Hi, I made this repo. I'm here to drop my opinions as below.

[1]

- golang-fifo provides also SIEVE algorithm which is more effieicnt than S3-FIFO under web cache workloads(follows zipf's distribution)

[2]

- I added otter to my cache benchmark. It shows less efficiency than mine. I'm not sure why this happens.

See results here: https://github.com/scalalang2/go-cache-benchmark

[3]

- If the behavior of the two algorithms is the same, they should produce similar results. but they shows different results.

- Otter is faster with more concurrency, but misses more stuff (shows less hit/rate).

Re:Faker.js Has Been Deleted on Thursday January 06, 2022 @09:32AM (#29823944)
I have forked original source code. https://github.com/scalalang2/faker.js-mirror
Re:Ask HN: How did you meet your spouse? on Friday December 01, 2017 @03:58AM (#15822760)
I met my girlfriend at hackaton. I am in a time with her. In that team. we developed a mobile application which evaluate somenoe's profile picture whether it is good or not. At the end of day of hackaton. She helps my presentations.