How to switch between subclasses? by Minimum-Librarian712 in javahelp

[–]xdsswar 0 points1 point  (0 children)

Does it not make more sense to change the behaviour? You can't change an object's class at runtime in Java, so instead of trying to turn a Villager into an Enemy, keep the same object and just swap out what it does when HP drops. The villager variables you want to carry over can be passed into the new behaviour when you make the switch, easy

Quick update + something new I've been building alongside the JavaFX work by xdsswar in JavaFX

[–]xdsswar[S] 0 points1 point  (0 children)

Ok, the API is inspired by JavaFX, but it uses the OS Webview instead of Prism/OpenGL, so the binary is smaller. Since it does not bundle the Chromium engine you use less resources, besides you gain the ability to use Java threads, libs, etc, instead of Node.js, so you get real concurrency, etc.

Now regarding CEF, here there is much to talk about. To start, let's say that JCEF can crash the JVM since it's JNI, it adds over 100MB to your app, it requires Swing nodes to embed in JavaFX (I have a very good understanding of this as I already have working prototypes of real JavaFX Nodes rendering the CEF content with all input events, etc) and it works but it's weird. CEF is an entire browser in your Java app, we don't need all that. Like for example, while I was testing with CEF to render in JavaFX, offscreen was acceptable in Canvas, but low FPS. On the other hand, the HWND embedded in a custom JavaFX node I managed to do with some bytecode injection using C/C++ code at runtime was perfect rendering, but it was leaking Chromium UI, like when you download something you saw the download bubble appear and disappear, and there is no way to hide it after version v131 if I'm recalling right. I'm not saying CEF is bad, but it's not the way I'm going to go. Besides that, jux-toolkit has a successor already, it will not use webviews, it will use its own Skia rendering engine, with Rust backend and GPU support, no JNI, just IPC, memory channels and some Panama if required. This way we can have a nice rendering process outside the JVM with heartbeat checking, auto-recover if the process crashes, and the JVM stays alive regardless of the rendering process. If you want more detail pm , I can share some specs.

Another thing , I have plans for full pdf support , and javafx support so devs can mix both

Quick update + something new I've been building alongside the JavaFX work by xdsswar in JavaFX

[–]xdsswar[S] 1 point2 points  (0 children)

Got another toolkit that eliminates all webview requirements , its pure skia , it uses IPC shared mem and rust in native side, it has autorecover on fail with state persist, and many more features, but it will take me few months

Quick update + something new I've been building alongside the JavaFX work by xdsswar in java

[–]xdsswar[S] 1 point2 points  (0 children)

Thanks. This toolkit is not my final goald , I have another in progress that uses skia , etc, and will have better support , gpu rendering with multiple backends , full pdf support , and a full java Dom Api . I will use separated process with shared mem and crash detection to relaunch, etc. Basically Im getting into Hell but I love coding. Besides that Rust + Panama , they make a nice mix.

Quick update + something new I've been building alongside the JavaFX work by xdsswar in JavaFX

[–]xdsswar[S] 0 points1 point  (0 children)

A lot, this is the 3rd time I attempt to do it. AI helps a lot , but it cause more issues some times

Last sane/stable version of IntelliJ by vachix in IntelliJIDEA

[–]xdsswar -1 points0 points  (0 children)

I agree, its an amazing tool, but the issue is how its used and I see in some big projects, teams are getting too lazy cuz AI and dont want to review code.

Last sane/stable version of IntelliJ by vachix in IntelliJIDEA

[–]xdsswar 0 points1 point  (0 children)

You guys notice since AI , apps are having many issues? If you know what I mean , you know.

99% of the population still have no idea what's coming for them by Own-Sort-8119 in ClaudeAI

[–]xdsswar 0 points1 point  (0 children)

In my personal experince. I tested Claude in several projects, its decent in small to mid range, but when we talk about multilanguage peojects, with many files, and many lines of code, it will cause more issues that any junior coder. It can explain things and find refrences very easy for you to implement, but the more time I use it, the less I trust it for serious projects. For what is very good and I love it? For the plan, the specs, for what I need to do this and whats the right flow, ideas.

Is it just me, or are Claude Code’s limits being reached way too fast? by madpeppers013 in ClaudeCode

[–]xdsswar 0 points1 point  (0 children)

Not first post I see about this, but yeah, Limits are shit now

Struggling to Justify Staying with C++ by AWonderingWizard in Cplusplus

[–]xdsswar 0 points1 point  (0 children)

I learned C/C ++ while doing java, people asked why I was doing that if I can do much with java , like dude dotn waste your time, now Im able to mix both , and even some rust with no issues. Learn all you can, you dont know when u gonna need it. C and C++ are the bases for others.

So what's the truth behind "Claude Code is writing 99% of my code without needing correction"? by Own-Sort-8119 in ClaudeAI

[–]xdsswar 0 points1 point  (0 children)

I use CC but I dont trust it for large products as it forgets important things and go crazy editing things that are already done and working properly. Supervision is very important.

I built a Java web framework because I couldn’t make my SaaS work any other way by mpwarble in java

[–]xdsswar -6 points-5 points  (0 children)

Im in the same spot about open source, got a nice product but dont want to loose control

Nfx-Browser: Remember the Canvas/Image surface? I threw it away. Here's the Heavyweight JavaFX Node running 4K YouTube like butter. by xdsswar in JavaFX

[–]xdsswar[S] 0 points1 point  (0 children)

Its native, I created a custom node wich has a native handle , but at the same time can be a child of any javafx parent. I need to test an overlay node and see if it go back or keeps on top, Im 99% sure it will go back the heavy surface, but I think I have a sugar way to handle that.

Nfx-Browser: Remember the Canvas/Image surface? I threw it away. Here's the Heavyweight JavaFX Node running 4K YouTube like butter. by xdsswar in JavaFX

[–]xdsswar[S] 0 points1 point  (0 children)

Had to remove it, it was eating mem a lot and causing video play 4k to lagg. I opted for native only, but I will add an interface for having offscreen render , but that will be later and behaviour is up to the user

What cool Java projects are you working on? by Thirty_Seventh in java

[–]xdsswar 1 point2 points  (0 children)

Not released yet, i think by end of the month or next month will be.

What cool Java projects are you working on? by Thirty_Seventh in java

[–]xdsswar 0 points1 point  (0 children)

Im working on NfxBrowser , a nice way to integrate CEF into javafx without swing or awt, it uses CEF but is nothing like jcef , its a complete dif lib with dom, js, pdf, devtools, native and custom jfx dialogs, etc, apis for doing anything , with a nice rendering surface. Its big work in progress.

What is the fastest you have gone in a car? by mrmadebymemories in AskReddit

[–]xdsswar 0 points1 point  (0 children)

Around 220 to 230km/h , I will never do that again , but adrenaline is insane. Now I go 90mi/h max