frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

OpenCiv3: Open-source, cross-platform reimagining of Civilization III

https://openciv3.org/
611•klaussilveira•12h ago•180 comments

The Waymo World Model

https://waymo.com/blog/2026/02/the-waymo-world-model-a-new-frontier-for-autonomous-driving-simula...
915•xnx•17h ago•545 comments

What Is Ruliology?

https://writings.stephenwolfram.com/2026/01/what-is-ruliology/
28•helloplanets•4d ago•22 comments

How we made geo joins 400× faster with H3 indexes

https://floedb.ai/blog/how-we-made-geo-joins-400-faster-with-h3-indexes
102•matheusalmeida•1d ago•24 comments

Unseen Footage of Atari Battlezone Arcade Cabinet Production

https://arcadeblogger.com/2026/02/02/unseen-footage-of-atari-battlezone-cabinet-production/
36•videotopia•4d ago•1 comments

Show HN: Look Ma, No Linux: Shell, App Installer, Vi, Cc on ESP32-S3 / BreezyBox

https://github.com/valdanylchuk/breezydemo
212•isitcontent•12h ago•25 comments

Jeffrey Snover: "Welcome to the Room"

https://www.jsnover.com/blog/2026/02/01/welcome-to-the-room/
5•kaonwarb•3d ago•1 comments

Monty: A minimal, secure Python interpreter written in Rust for use by AI

https://github.com/pydantic/monty
206•dmpetrov•12h ago•101 comments

Show HN: I spent 4 years building a UI design tool with only the features I use

https://vecti.com
316•vecti•14h ago•140 comments

Microsoft open-sources LiteBox, a security-focused library OS

https://github.com/microsoft/litebox
355•aktau•18h ago•181 comments

Sheldon Brown's Bicycle Technical Info

https://www.sheldonbrown.com/
361•ostacke•18h ago•94 comments

Hackers (1995) Animated Experience

https://hackers-1995.vercel.app/
471•todsacerdoti•20h ago•232 comments

Show HN: If you lose your memory, how to regain access to your computer?

https://eljojo.github.io/rememory/
267•eljojo•15h ago•157 comments

An Update on Heroku

https://www.heroku.com/blog/an-update-on-heroku/
399•lstoll•18h ago•271 comments

Delimited Continuations vs. Lwt for Threads

https://mirageos.org/blog/delimcc-vs-lwt
25•romes•4d ago•3 comments

Dark Alley Mathematics

https://blog.szczepan.org/blog/three-points/
82•quibono•4d ago•20 comments

PC Floppy Copy Protection: Vault Prolok

https://martypc.blogspot.com/2024/09/pc-floppy-copy-protection-vault-prolok.html
54•kmm•4d ago•3 comments

Was Benoit Mandelbrot a hedgehog or a fox?

https://arxiv.org/abs/2602.01122
9•bikenaga•3d ago•2 comments

How to effectively write quality code with AI

https://heidenstedt.org/posts/2026/how-to-effectively-write-quality-code-with-ai/
242•i5heu•15h ago•183 comments

Introducing the Developer Knowledge API and MCP Server

https://developers.googleblog.com/introducing-the-developer-knowledge-api-and-mcp-server/
51•gfortaine•10h ago•16 comments

I spent 5 years in DevOps – Solutions engineering gave me what I was missing

https://infisical.com/blog/devops-to-solutions-engineering
138•vmatsiiako•17h ago•60 comments

Understanding Neural Network, Visually

https://visualrambling.space/neural-network/
275•surprisetalk•3d ago•37 comments

Show HN: R3forth, a ColorForth-inspired language with a tiny VM

https://github.com/phreda4/r3
68•phreda4•11h ago•13 comments

I now assume that all ads on Apple news are scams

https://kirkville.com/i-now-assume-that-all-ads-on-apple-news-are-scams/
1052•cdrnsf•21h ago•433 comments

Why I Joined OpenAI

https://www.brendangregg.com/blog/2026-02-07/why-i-joined-openai.html
127•SerCe•8h ago•111 comments

Female Asian Elephant Calf Born at the Smithsonian National Zoo

https://www.si.edu/newsdesk/releases/female-asian-elephant-calf-born-smithsonians-national-zoo-an...
28•gmays•7h ago•10 comments

Learning from context is harder than we thought

https://hy.tencent.com/research/100025?langVersion=en
173•limoce•3d ago•93 comments

Vocal Guide – belt sing without killing yourself

https://jesperordrup.github.io/vocal-guide/
7•jesperordrup•2h ago•4 comments

FORTH? Really!?

https://rescrv.net/w/2026/02/06/associative
61•rescrv•20h ago•22 comments

Zlob.h 100% POSIX and glibc compatible globbing lib that is faste and better

https://github.com/dmtrKovalenko/zlob
17•neogoose•4h ago•9 comments
Open in hackernews

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

https://github.com/raiyanyahya/zapq
17•RaiyanYahya•7mo ago

Comments

KaleBab•7mo 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•7mo ago
Is this ai generated?
hotpocket777•7mo ago
Yes
KaleBab•7mo ago
Do you mean my comment, or the project? My comment wasn't, if that's what you meant.
vips7L•7mo ago
Does Go not have a built in concurrent queue?
brodo•7mo ago
Yes Go Channels are concurrent FIFO queues.
vips7L•7mo 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•7mo ago
I‘ve checked the repo and this looks a litte AI generated to me.
hotpocket777•7mo ago
More than a little
stevekemp•7mo ago
Flagged this submission for that very reason.
kgeist•7mo 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•7mo ago
Why not just create a Go library that wraps mkfifo? What’s the advantage here?
teeray•7mo 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•7mo 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•7mo ago
There is no sense
nurettin•7mo ago
Why not multiple queues?
reactordev•7mo 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•7mo 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•7mo ago
At work, we use RabbitMQ in most projects. Runs OK on a laptop.
RaiyanYahya•7mo ago
yes I have used it. I just made this for the sake of it. I wanted it be easy to use.
lormayna•7mo ago
Use NATS https://nats.io
RaiyanYahya•7mo ago
the aim was not to build or compete with nats.io ... this is a basic quick single node setup