HNHacker News
TopNewBestAskShowJobs

ptrwis

91 karma · joined October 2, 2019

submissionscomments
ptrwis··on GlassFish Embedded – a simple way to run Jakarta EE apps
I don't know, but maybe these application servers are certified in some way so that they can be used in the right places that require certification (I'm guessing, not sarcastic)? Which would make sense, but some people host applications written in Spring on JavaEE application servers, which is like adding ketchup to a Greek salad. For me, Java EE standardization makes absolutely no sense. You code to common programming interfaces when you need to break them down to use the underlying implementations. Now I code in .Net and at least I don't have such dilemmas.
ptrwis··on GlassFish Embedded – a simple way to run Jakarta EE apps
Nah, the old EJBs had a terrible programming interface. JavaEE 6 introduced a lot of good changes, but it was too late to convince people to switch back from Spring. To me it's like people abandoned JavaEE because it was hard to write fairly simple applications using EJBs (because it was) and switched to Spring, and then started writing large monoliths in Spring and realized they need to break them up into modules, so they invented microservices, but implemented them as standalone Spring Boot instances... when now it would be easier to go back to EJB + JMS. Microsoft has quite a similar "technology" called Microsoft Orleans, but it doesn't get much attention.
ptrwis··on GlassFish Embedded – a simple way to run Jakarta EE apps
I would say that application servers with EJB and JMS are a good environment for implementing microservices. Everything uses less resources (memory) and communication is much more efficient, plus everything is written in Java, which makes it easier to maintain consistency.
ptrwis··on PostgreSQL 16
As others have written, this work entails implementing asynchronous IO. One system I worked with that was more heavily loaded than the usual intranet CRUD was an SMS lottery run by a radio station. They had "bonus rounds" that lasted a few minutes. When the host said "now send!" we were receiving a huge amount of data at the same time. However, it worked for years on Postgres 7.4 and regular hard drives :)
ptrwis··on PostgreSQL 16
Have you read the entire thread you linked? People explained to Linus why direct IO is important to them. Besides, it's 20 years old and there were even no SSDs back then. The lack of direct IO in PG was one of (one of) the reasons why Uber moved to MySQL (https://www.uber.com/en-PL/blog/postgres-to-mysql-migration/, "The Buffer Pool" Section). With buffered IO you will likely store a lot of the same data in memory twice- once in DB's memory and then in page cache. Now you can just give the memory used by page cache directly to DB, because it knows better what and when it needs.
ptrwis··on PostgreSQL 16
I know, but it's still nice to see progress in this area. Even PG17 would probably be too early to expect this work to be finished.
ptrwis··on PostgreSQL 16
I'm thinking lower resource usage (no double caching of data), shorter path to data so I would expect fewer bad things might happen during commit, and better performance in terms of transactions per second. Otherwise, I can't explain it any better than one of the lead developers himself: https://www.postgresql.org/message-id/20210223100344.llw5an2...
ptrwis··on PostgreSQL 16
I can't wait for direct I/O (now behind debug_io_direct setting).
ptrwis··on Postgres Language Server
I also wanted to ask about extensions. How does it work internally? Does it ask the database for parsing or does it have its own syntax analyzer?
ptrwis··on TS to JSDoc Conversion
Regardless of how it ends, it will be a very valuable experience for the entire JS community.
ptrwis··on Angular v16
This is an issue with zone.js + getters, I changed the key components to OnPush change detection.
ptrwis··on Angular v16
The problem I had with getters in a fairly complex application (WYSIWYG editor) was handling mouse events, in particular onMouseMove - change detection was triggered on every such event, and the application was very slow. EDIT: It was slow because there were many getters based on other getters etc and everything was recalculated on each event.
ptrwis··on Using io_uring for network I/O
Finally something happens
ptrwis··on Show HN: Kuboble.com – Minimalistic sliding pieces puzzle game
Even without Canvas HTML with SVG is great - you have lots of easy to add effects and built-in IO events. There is now a Web Animations API which is also easy and pleasant to use.
ptrwis··on Bun v0.5
Do you plan to support http3 in the (near) future?
ptrwis··on Migrating from Vue 2 to Svelte
For animations, the standard Web Animation API is very convenient. From what I can see, the animation library in Svelte looks pretty similar.
ptrwis··on Speeding up the JavaScript ecosystem, one library at a time
I would freeze before the JVM would warm up.
ptrwis··on PostgreSQL 15
At least for some cases, there was a workaround by using INSERT ... ON CONFLICT
ptrwis··on I wish my web server were in the corner of my room
I once ran some GNU/Linux distro on Android, and then Tomcat on it :)
ptrwis··on Using WebTransport
What I mean is that compared to, for example, WebSockets and WebTransport, WebRTC is more difficult to use (not through third-party libraries but "native" WebRTC data-channel API). But you are right and I was wrong, STUN is not necessary.
ptrwis··on Using WebTransport
And are you going to run a dedicated signaling service and do all that STUN karate to just connect the peer to a publicly available server?
ptrwis··on io_uring_spawn: Launching New Processes with io_uring
fork bomb
ptrwis··on The self-fulfilling prophecy of React
I would like to have JSX in Angular
ptrwis··on Learn PWA
I can't see where the money is. Tooling is available for free, you have to pay for the development account anyway.
ptrwis··on Learn PWA
I don't understand why Google doesn't allow SPAs to be placed on Google Play, it would really be a game changer
ptrwis··on Show HN: I made a web game using emojis and no JS framework
Now what is the best way today to publish such JavaScript app in Google or Apple app stores?
ptrwis··on .NET 7 Preview 1
Good to hear Orleans is being developed, maybe I'll finally try it out.
ptrwis··on WebAssembly: The New Kubernetes?
And were these application servers (like JavaEE) that bad? Separately deployed EJB modules can also be considered microservices, and everything was much easier to manage.
ptrwis··on A Review of the Zig Programming Language (Using Advent of Code 2021)
If dereferencing the pointer is through ptr.*, wouldn't it be more consistent to take the address with myvar.& instead of &myvar?
ptrwis··on From Node to Ruby on Rails
Next.js will be to JavaScript what RoR is to Ruby, it only needs some time to mature.
← PreviousPage 2 of 3Next →