r/java • • Jun 10 '24

[deleted by user]

[removed]

615 Upvotes

594 comments sorted by

View all comments

Show parent comment

1

u/raynorelyp Jun 11 '24

This took literally ten seconds to disprove: https://github.com/openai/openai-node

Additionally debugging has more to do with the skill of the programmer than the language in my experience.

As for your final one, it depends on a lot of factors, such as if the JVM is warm. If it’s warm, it’ll outperform v8 almost every time. If it’s not, it depends on the situation, but in most common circumstances v8 will outperform it by loading faster even though it executes slower

3

u/60secs Jun 12 '24 edited Jun 12 '24

openai has zero relationship to openapi(swagger).
It's embarrassing how primitive openapi support is on node. How in the world are people supposed to use services where they can't even generate an up to date spec? I'm astounded people recommend it at all for enterprise backends.

Debugging has everything to do with the model. If everything is async/promises, it's several orders of magnitude slower and less efficient.

If you're doing non-trivial calculation, a single thread event loop, by definition, will be slower.

2

u/raynorelyp Jun 12 '24 edited Jun 12 '24

I think you didn’t read the link correctly

Edit: (it says OpenAI API, not OpenAPI)

Edit: ohhhhhh I misread your comment as OpenAI, not OpenAPI. My bad. The rest of that comment makes way more sense now