Hacker News

Show HN: Io_uring for Ruby

Hacker News - Mon, 09/09/2024 - 7:59am
Categories: Hacker News

Show HN: Serverless VPN App for iOS and iPadOS

Hacker News - Mon, 09/09/2024 - 7:57am

Article URL: https://UpVPN.app/ios

Comments URL: https://news.ycombinator.com/item?id=41487689

Points: 1

# Comments: 0

Categories: Hacker News

BOGNER

Hacker News - Mon, 09/09/2024 - 7:39am

Article URL: https://www.bogner.com/de-de/

Comments URL: https://news.ycombinator.com/item?id=41487555

Points: 1

# Comments: 0

Categories: Hacker News

Ask HN: Is It Time to Retire Open API Spec for JSON API?

Hacker News - Mon, 09/09/2024 - 7:31am

Hello HN, I am planning to develop a new API Specification format that’s tailored for code generation and schema first design because I find Open API Spec and the surrounding toolchains frustrating to work with.

I am seeing a lot of new startups trying to solve existing problems surrounding Open API Spec. Speakeasy, Fern, and Liblab are all trying to generate state-of-the-art client SDK using Open API Spec.

I want to take a different approach. I believe the reason why the experience surrounding the Open API toolchain is subpar is because Open API Spec is designed to be an API Documentation format, not for code generations.

I build Json APIs mostly. I need a quick and easy way to write a spec for my APIs, and generate server request/response models and http clients to get end-to-end type safety across my services. If I can get API documentation out of this process, even better.

Instead, doing what is supposed to be simple proves to be nearly impossible with Open API Spec.

First, I have to struggle my way through writing the spec in YAML with no code completion help, and let’s face it, there are way too many fields in Open API Spec supporting all kinds of weird API use cases. Writing it by hand is a tedious and error-prone process. You either are doing a lot of copy pasting or you have to constantly refer to the documentation.

Once I finally come up with a well-crafted Open API spec, I then have to wrestle my way through tons of “official” and “unofficial” code generators out there with varying degrees of Open API Spec support.

I finally find a good generator only to realize the generator outputs different code depending on how you write your spec. Now I am tweaking the spec to get the generator to produce the output that I want. Oops, now my changes in the spec break the output of another generator. At this point, I might as well just develop the whole stack in a dynamically typed language and call it a day.

Enough is enough. I am going to build my own tooling for Open API. Let me try parsing the spec first.

I gave up within 5 minutes. Open API Spec is so open-ended it’s impossible for me to work with it.

It's time to design a new API spec from scratch. Something that is not only lightweight, but also tailored for code generation and schema first design. Maybe it’s even time to ditch ‘restful’ practices altogether and do everything with POST requests. I find restful practices a lot less ‘restful’ than the name suggests. What do you think?

I built a survey to collect pain points surrounding Open API Spec. Please fill it out if you are interested in replacing Open API Spec with something better!

I also put a quick poc demo site together if you want to get a sneak peek of what I am planning to do!

Link to survey: https://tally.so/r/wkWG0d Link to demo site: https://yizy.rootxsnowstudio.com/

Comments URL: https://news.ycombinator.com/item?id=41487501

Points: 2

# Comments: 0

Categories: Hacker News

Show HN: Realtime Events Scraper (pip package) – events-scraper

Hacker News - Mon, 09/09/2024 - 7:19am

Input parameters (city, genre, dates, etc) and get back the events happening using Ticketmaster.

Give us a star on github and check my pip package: https://pypi.org/project/events-scraper/0.1.0/

Comments URL: https://news.ycombinator.com/item?id=41487401

Points: 1

# Comments: 0

Categories: Hacker News

Questions about LLMs in Group Chats

Hacker News - Mon, 09/09/2024 - 7:19am
Categories: Hacker News

Ask HN: So there is no way to prove that bits have been tempered with?

Hacker News - Mon, 09/09/2024 - 7:13am

... if enough bits have been tempered with. I'll get it at some point but hope to find some shortcuts.

- in storage/memory/buffer

- on switches/routers/gateways

Except if your system/network is entirely yours and you send access info to some other place live.

Comments URL: https://news.ycombinator.com/item?id=41487361

Points: 1

# Comments: 0

Categories: Hacker News

WhisperGate

Hacker News - Mon, 09/09/2024 - 7:11am
Categories: Hacker News

Pages