frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

JavaScript Trademark Update

https://deno.com/blog/deno-v-oracle4
399•thebeardisred•4h ago•136 comments

MCP: An (Accidentally) Universal Plugin System

https://worksonmymachine.substack.com/p/mcp-an-accidentally-universal-plugin
453•Stwerner•9h ago•203 comments

BusyBeaver(6) Is Quite Large

https://scottaaronson.blog/?p=8972
165•bdr•6h ago•116 comments

Life of an inference request (vLLM V1): How LLMs are served efficiently at scale

https://www.ubicloud.com/blog/life-of-an-inference-request-vllm-v1
62•samaysharma•5h ago•3 comments

2025 ARRL Field Day

https://www.arrl.org/field-day
62•rookderby•4h ago•21 comments

Addictions Are Being Engineered

https://masonyarbrough.substack.com/p/engineered-addictions
324•echollama•8h ago•205 comments

We ran a Unix-like OS Xv6 on our home-built CPU with a home-built C compiler (2020)

https://fuel.edby.coffee/posts/how-we-ported-xv6-os-to-a-home-built-cpu-with-a-home-built-c-compiler/
212•AlexeyBrin•11h ago•18 comments

Unheard works by Erik Satie to premiere 100 years after his death

https://www.theguardian.com/music/2025/jun/26/unheard-works-by-erik-satie-to-premiere-100-years-after-his-death
172•gripewater•13h ago•44 comments

Memory Safe Languages: Reducing Vulnerabilities in Modern Software Development [pdf]

https://media.defense.gov/2025/Jun/23/2003742198/-1/-1/0/CSI_MEMORY_SAFE_LANGUAGES_REDUCING_VULNERABILITIES_IN_MODERN_SOFTWARE_DEVELOPMENT.PDF
35•todsacerdoti•5h ago•2 comments

Show HN: Vet – A tool for safely running remote shell scripts

https://getvet.sh
35•a10r•3h ago•8 comments

Show HN: AGL a toy language that compiles to Go

https://github.com/alaingilbert/agl
28•alain_gilbert•3d ago•8 comments

Show HN: I'm an airline pilot – I built interactive graphs/globes of my flights

https://jameshard.ing/pilot
1411•jamesharding•1d ago•189 comments

Sirius: A GPU-native SQL engine

https://github.com/sirius-db/sirius
70•qianli_cs•9h ago•8 comments

NovaCustom – Framework Laptop alternative focusing on privacy

https://novacustom.com/
27•CHEF-KOCH•5h ago•31 comments

The Great Illusion: When We Believed BeOS Would Save the World

https://www.desktoponfire.com/haiku_inc/782/the-great-illusion-when-we-believed-beos-would-save-the-world-and-maybe-it-was-right/
22•naves•3h ago•26 comments

Finding Peter Putnam

https://nautil.us/finding-peter-putnam-1218035/
61•dnetesn•13h ago•59 comments

Parsing JSON in Forty Lines of Awk

https://akr.am/blog/posts/parsing-json-in-forty-lines-of-awk
69•thefilmore•8h ago•29 comments

A literary magazine accessible only via telnet

8•edent•3d ago•6 comments

The Book Cover Trend of Text on Old Paintings

https://www.nytimes.com/2025/06/21/books/review/book-cover-trends.html
8•zdw•3d ago•3 comments

An Indoor Beehive in My Bedroom Wall

https://www.keepingbackyardbees.com/an-indoor-beehive-zbwz1810zsau/
23•gscott•6h ago•1 comments

ZeQLplus: Terminal SQLite Database Browser

https://github.com/ZetloStudio/ZeQLplus
50•amadeuspagel•11h ago•11 comments

The Death of the Middle-Class Musician

https://thewalrus.ca/the-death-of-the-middle-class-musician/
15•pseudolus•1h ago•7 comments

Evaluating Long-Context Question and Answer Systems

https://eugeneyan.com/writing/qa-evals/
10•swyx•3d ago•0 comments

Why the moon shimmers with shiny glass beads

https://phys.org/news/2025-06-moon-shimmers-shiny-glass-beads.html
13•PaulHoule•4d ago•2 comments

Exploring Trichromacy through Maxwell's Color Experiment (2023)

https://maxwell.kohterai.com/
4•niwrad•1h ago•0 comments

Lago (Open-Source Usage Based Billing) is hiring for ten roles

https://www.ycombinator.com/companies/lago/jobs
1•AnhTho_FR•11h ago

IDF officers ordered to fire at unarmed crowds near Gaza food distribution sites

https://www.haaretz.com/israel-news/2025-06-27/ty-article-magazine/.premium/idf-soldiers-ordered-to-shoot-deliberately-at-unarmed-gazans-waiting-for-humanitarian-aid/00000197-ad8e-de01-a39f-ffbe33780000
1020•ahmetcadirci25•16h ago•745 comments

No One Is in Charge at the US Copyright Office

https://www.wired.com/story/us-copyright-office-chaos-doge/
117•rntn•6h ago•77 comments

After successfully entering Earth's atmosphere, a European spacecraft is lost

https://arstechnica.com/space/2025/06/a-european-spacecraft-company-flies-its-vehicle-then-loses-it-after-reentry/
52•rbanffy•3d ago•22 comments

Lossless LLM 3x Throughput Increase by LMCache

https://github.com/LMCache/LMCache
136•lihanc111•4d ago•39 comments
Open in hackernews

Show HN: A Go service that exposes a FIFO message queue in RAM

https://github.com/raiyanyahya/zapq
17•RaiyanYahya•3d ago

Comments

KaleBab•4h ago
Congratulations on publishing your project!

Since you haven't written much in your post, I'm not entirely sure what your specific intentions are. Do you expect people to use your application, are you looking for feedback or tips?

I think my first tip is, if your intention is for it to be used by others, to ensure a little higher quality before publishing a project. If it's more of a learning project, that's fine, but then it would be nice to indicate as such! And perhaps ask for specific help.

I looked at the code a little bit, and I see some quirks and interesting things which makes me hesitant to use this application in production. I think a bit more polish is required before it's production ready. I'm not about to do a full code review, but here are some random pointers of things that I noticed.

* In the Readme it says the endpoints are POST and GET specifically. But are they? What happens when you GET enqueue or HEAD dequeue? * The queue methods update global variables, is this really the best design choice? Why not consider putting them as fields on the queue? If not, why are the queue's fields not simply global variables, too? * Go has an excellent `slog` package for structured JSON logging, and it would be quite idiomatic to use it * In some environments, such as Kubernetes, the implemented graceful shutdown procedure will terminate the app while the service might still be routing requests to it (as far as I know, it sends the SIGINT concurrently with asking the service to remove the pod from the service [simplified]) * Is "too many requests" the most appropriate status code when the enqueue method returns an error? * The server timeouts could be considered rather large when all it's doing is reading and writing a maximum of 128KiB payloads; preferably such options would be configurable in any case

Honestly all in all, it looks like a university student project. Specially due to the emphasis on spelling out computer science concepts and Go specifics in the Readme (e.g. "Nils every slice entry so Go’s tri‑colour GC can reclaim memory quickly; resets counters", "Mutex ensures linearizability (each op appears instantaneous). Because we hold the lock only long enough to modify the slice, throughput scales linearly until contention on enqueue/dequeue dominates"). Nothing wrong with that, but it would be good to mark it as such.

Also I can highly recommend the book 100 Go Mistakes and How to Avoid Them which will address some points I see in this code as well.

Anyway keep up the good work and happy coding!

wredcoll•2h ago
Is this ai generated?
vips7L•4h ago
Does Go not have a built in concurrent queue?
brodo•4h ago
Yes Go Channels are concurrent FIFO queues.
vips7L•1h ago
Ah right I forgot, they’re rendezvous queues right? I guess I’m confused why you would need an in memory queue as a service then.
brodo•4h ago
I‘ve checked the repo and this looks a litte AI generated to me.
hotpocket777•3h ago
More than a little
stevekemp•3h ago
Flagged this submission for that very reason.
kgeist•2h ago
I gave ChatGPT the project's README and asked it to write Go code based on it. The code it produced was very similar in structure to the original, with many parts almost identical.

For example, what ChatGPT gave me:

  func (q *Queue) Enqueue(b []byte) error {
   if len(b) > maxBodySize {
     return fmt.Errorf("payload too large")
   }
   q.mu.Lock()
   defer q.mu.Unlock()

   if len(q.data) >= q.maxMsg || q.bytes+len(b) > q.maxB {
    return errors.New("queue full")
   }
   cp := append([]byte(nil), b...)
   q.data = append(q.data, cp)
   q.bytes += len(cp)
   atomic.AddUint64(&q.enqueueCnt, 1)
   return nil
  }
The project:

  func (q *queue) enqueue(b []byte) error {
   if len(b) > maxBody {
    return errors.New("payload too large")
   }
   q.mu.Lock()
   defer q.mu.Unlock()
   if len(q.data) >= maxMsgs || q.bytes+int64(len(b)) > maxBytes {
    return errors.New("queue full")
   }
   cp := append([]byte(nil), b...)
   q.data = append(q.data, cp)
   q.bytes += int64(len(cp))
   atomic.AddUint64(&enqueueCnt, 1)
   return nil
  }
pokstad•3h ago
Why not just create a Go library that wraps mkfifo? What’s the advantage here?
teeray•3h ago
> Critical Section – guarded by a single mutex. Simpler than read‑write locks because writes dominate.

To call out this triviality feels like a hallmark of AI Slop for sure. “No use a regular mutex instead of an RWMutex,” and then the AI helpfully puts that footnote into the README.

lormayna•3h ago
I am only an amateur go developer, but I have some questions:

* what is the sense of this project? NATS is quite the standard for this use case in Go and you can also embed it in a golang binary

* the code seems a bit "strange" to me: why not using existing libraries for structured logging? No unit tests, no usage of interfaces (i.e. persistence can implement writer interface), etc.

hotpocket777•3h ago
There is no sense
nurettin•3h ago
Why not multiple queues?
reactordev•2h ago
Why is this here? I can prompt this in 5 minutes. Am I missing something? Are channels that useful for it to be an API without purpose?
RaiyanYahya•1h ago
I apologize if anyone got offended by this. I thought it was pretty cool. The intention was not to show off. I did use ai to help me build this. The goal was to have a local implementation of a queue which can be used to decouple systems and use for processing messages. I should have included the intention of the post. I thought some other people would find it cool.

If you have ever used AWS SQS, I wanted to build something like that. Something that would run locally and can be used on simple servers. I apologize if it came out as something else. I apologize again.

kgeist•1h ago
At work, we use RabbitMQ in most projects. Runs OK on a laptop.
RaiyanYahya•1h ago
yes I have used it. I just made this for the sake of it. I wanted it be easy to use.